package com.yonyou.iuap.shell.dao;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Repository;

import com.yonyou.iuap.base.dao.IKmBaseDao;
import com.yonyou.iuap.persistence.mybatis.anotation.MyBatisRepository;
import com.yonyou.iuap.shell.entity.exp.FavoriteCountPojo;
import com.yonyou.iuap.shell.entity.exp.FavoritePojo;
import com.yonyou.iuap.shell.pub.IShellDaoEnum;


/**
 * 
 * KmFavoriteEntityDao数据库操作接口类
 * 
 **/
@MyBatisRepository
@Repository(value=IShellDaoEnum.Shell_Dao_Favorite)
public interface KmFavoriteEntityDao<T> extends IKmBaseDao<T>{

	public List<FavoritePojo> Selectfavoritepk(Map<String, Object> map);
	
	/**
	 * 知识收藏数量统计
	 * */
	public List<FavoritePojo> Countfavoritepk();
	
	public List<FavoriteCountPojo> favoritecount(String str);
	public List<FavoritePojo> queryfavoriteuser(Map<String, Object> map);
	public List<FavoritePojo> queryfavoriteusersize(String str);
	
	/**根据登录用户查询收藏
	 * @param map
	 * @return
	 */
	public int getfavoriteuserCount(Map<String, Object> map);
	
	/**根据关键字查询收藏
	 * @param str
	 * @return
	 */
	public int getfavoriteLikeCount(Map<String, Object> map);
}
